package com.zwq.springbootlearn.repository;

import com.zwq.springbootlearn.model.Girl;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author: zwq
 * Create in 2018/6/29 23:28
 */
public interface GirlRepository extends JpaRepository<Girl,Integer> {

    //通过年龄查询，方法名固定写法,自动根据年龄查，不用自己写sql语句
    public List<Girl> findByAge(Integer age);


}
